Skip to content

Craft anything fix serverside#1382

Merged
mattsumi merged 1 commit intosmartcmd:mainfrom
sylvessa:fix/craft-anything
Mar 22, 2026
Merged

Craft anything fix serverside#1382
mattsumi merged 1 commit intosmartcmd:mainfrom
sylvessa:fix/craft-anything

Conversation

@sylvessa
Copy link
Collaborator

@sylvessa sylvessa commented Mar 22, 2026

Description

This fixes any debug options from being used in a server (such as craft anything)

Changes

Previous Behavior

No guards behind PlayerConnection::handleDebugOptions were in place, so if compiled as release, players could use debug options such as Craft Anything in a server, including other peoples servers (due to no check)

New Behavior

A guard now exists to prevent debug options from being used if not debug.

Fix Implementation

Added #ifdef _DEBUG guards around the player->SetDebugOptions(packet->m_uiVal); to prevent debug options from being used

This does not break debug options if compiled as debug, still can use debug options in a local server when compiled as debug as intended.

Minecraft.Client_nEVGfCBTQi.mp4

AI Use Disclosure

no ai

Related Issues

@mattsumi
Copy link
Collaborator

Thank you for contributing! This is a great fix!

@mattsumi mattsumi merged commit dac0736 into smartcmd:main Mar 22, 2026
1 check passed
itsRevela added a commit to itsRevela/MinecraftConsoles that referenced this pull request Mar 23, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
itsRevela added a commit to itsRevela/MinecraftConsoles that referenced this pull request Mar 23, 2026
itsRevela pushed a commit to itsRevela/MinecraftConsoles that referenced this pull request Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

craft anything is clientside (anyone can use it)

2 participants